/* 
 * File:   Mutex.cpp
 * Author: maximiliano
 * 
 * Created on May 22, 2013, 9:59 AM
 */

#include "common_Mutex.h"
using namespace TP;

Mutex::Mutex() {
    
    pthread_mutex_init(&_mutex, NULL);
}

Mutex::~Mutex() {
    pthread_mutex_destroy(&_mutex);
}

void Mutex::lock(){
    pthread_mutex_lock(&_mutex);
}

void Mutex::unlock(){
    pthread_mutex_unlock(&_mutex);
}

